/*
 * Peg.cpp
 *
 *  Created on: Oct 16, 2010
 *      Author: Jacob
 */
#pragma once
#include "stdafx.h"
#include "Peg.h"

Peg* Peg::createPegWithSize(int sizeOfPeg)
{
	return new Peg(sizeOfPeg);
}

Peg::Peg(int sizeOfPeg)
{
	this->size = sizeOfPeg;
}

Peg::~Peg()
{
}

int Peg::getSize()
{
	return this->size;
}

string Peg::toString()
{
	ostringstream stringStream;
	stringStream << "Peg: " << size;
	return stringStream.str();
}
